<html class="x-admin-sm">
<head>
    <meta charset="UTF-8">
    <title>coolMeeting</title>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="stylesheet" href="/css/font.css">
    <link rel="stylesheet" href="/css/xadmin.css">
    <link rel="stylesheet" href="/styles/common.css"/>
    <!-- <link rel="stylesheet" href="./css/theme5.css"> -->
    <script src="/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="/js/xadmin.js"></script>
    <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
    <!--[if lt IE 9]>
    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <script>
        // 是否开启刷新记忆tab功能
        // var is_remember = false;
    </script>
</head>
<body>
<#--    导航栏-->
<#include 'top.ftl'>
<div class="page-body">
    <#--            左侧导航栏-->
    <#include 'leftMenu.ftl'>
    <div class="page-content">
        <div class="content-nav">
            会议预定 > 搜索员工
        </div>
        <form action="/admin/searchEmpsbyPage">
            <fieldset>
                <legend>搜索会议</legend>
                <table class="formtable">
                    <tr>
                        <td>姓名：</td>
                        <td>
                            <input type="text" name="employeename" id="employeename" maxlength="20"/>
                        </td>
                        <td>账号名：</td>
                        <td>
                            <input type="text" name="username" id="accountname" maxlength="20"/>
                        </td>
                        <td>状态：</td>
                        <td>
                            <input type="radio" id="status" checked="checked" name="status" value="1"/><label>已批准</label>
                            <input type="radio" id="status" name="status" value="0"/><label>待审批</label>
                            <input type="radio" id="status" name="status" value="2"/><label>已关闭</label>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="6" class="command">
                            <input type="submit" class="clickbutton" value="查询"/>
                            <input type="reset" class="clickbutton" value="重置"/>
                        </td>
                    </tr>
                </table>
            </fieldset>
            <input type="hidden" value="0" name="start">
        </form>
        <div>
            <h3 style="text-align:center;color:black">查询结果</h3>
            <div class="pager-header">
                <div class="header-info">
                    共<span class="info-number">${emps.recordCount}</span>条结果，
                    分成<span class="info-number">${emps.pageCount}</span>页显示，
                    当前第<span class="info-number">${pagenumber}</span>页
                </div>
                <div class="header-nav">
                    <button class="clickbutton" onclick="javascript:window.location.href='getEmpsbyPage?start=0&status=1';" class="clickbutton">首页</button>
                    <button class="clickbutton" onclick="javascript:window.location.href='getEmpsbyPage?status=1&start=${emps.previousStart}';">上一页</button>
                    <button class="clickbutton" onclick="javascript:window.location.href='getEmpsbyPage?status=1&start=${emps.nextStart}';">下一页</button>
                    <button class="clickbutton" onclick="javascript:window.location.href='getEmpsbyPage?status=1&start=${emps.pageLastStart}';">末页</button>
                </div>
            </div>
        </div>
        <table class="listtable">
            <tr class="listheader">
                <th>姓名</th>
                <th>账号名</th>
                <th>联系电话</th>
                <th>电子邮件</th>
                <th>操作</th>
            </tr>
            <#if emps??>
                <#list emps.list as emp>
                    <tr>
                        <td>${emp.employeename}</td>
                        <td>${emp.username}</td>
                        <td>${emp.phone}</td>
                        <td>${emp.email}</td>
                        <td>
                            <a class="clickbutton" href="/admin/updateemp?id=${emp.employeeid}&status=${emp.status}">关闭账号</a>
                        </td>
                    </tr>
                </#list>
            </#if>
        </table>
    </div>
</div>
<div class="page-footer">
    <hr/>
    更多问题，欢迎联系<a href="mailto:webmaster@eeg.com">管理员</a>
    <img src="/images/footer.png" alt="CoolMeeting"/>
</div>
</body>
</html>